﻿using System;
using DL.Tools;
using UnityEngine;

namespace DL
{
    /// <summary>
    /// 特效信息类 
    /// </summary>
    [Serializable]
    public class VFXConfig
    {
        //name唯一,不然会出现错误
        public string name; //name
        public Vector3 eulerAngle; //角度向量
        public Quaternion rotation; //四元数角度
        public bool applyParent; //应用父节点
        public Transform parentTransform;//父节点
        
        public VFXEmitter vfxPrefab;//预制体
        public int defaultCount = 3;//默认实例化个数
        public int maxCount = 8;//最大实例化个数

        public VFXConfig(string name)
        {
            this.name = name;
            rotation = Quaternion.Euler(eulerAngle);
        }
    }
}